package org.springblade.task.base.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springblade.task.base.entity.BaseVirtualMoneyFlowLog;
import org.springblade.task.base.mapper.BaseVirtualMoneyFlowLogMapper;
import org.springblade.task.base.param.BaseParam;
import org.springblade.task.base.param.BaseUserParam;
import org.springblade.task.base.service.IBaseVirtualMoneyFlowLogService;
import org.springblade.task.base.vo.BaseVirtualMoneyFlowLogVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: ${file_name}
 * @Package ${package_name}
 * @Description: TODO
 * @author syncwt
 * @date ${date} ${time}
 * @version V1.0
 */
@Service
public class BaseVirtualMoneyFlowLogServiceImpl extends ServiceImpl<BaseVirtualMoneyFlowLogMapper, BaseVirtualMoneyFlowLog> implements IBaseVirtualMoneyFlowLogService {

	@Autowired
	BaseVirtualMoneyFlowLogMapper baseVirtualMoneyFlowLogMapper;

	 /**
	 * 查询首次充值用户
	 * @return
	 */
	 @Override
	public List<BaseVirtualMoneyFlowLogVO> queryFirstRechargeUserList(List<String> pinList) {

		return baseVirtualMoneyFlowLogMapper.queryFirstRechargeUserList(pinList);
	}

	/**
	 * 查询今日充值金额
	 * @param param
	 * @return
	 */
	public BaseVirtualMoneyFlowLogVO queryTodayRechargeAmount(BaseParam param) {

		return baseVirtualMoneyFlowLogMapper.queryTodayRechargeAmount(param);
	}

	/**
	 * 查询每日充值数据
	 * @param param
	 * @return
	 */
	public List<BaseVirtualMoneyFlowLogVO> queryDailyVirtualMoneyFlowLogList(BaseParam param) {
		return baseVirtualMoneyFlowLogMapper.queryDailyVirtualMoneyFlowLogList(param);
	}

	/**
	 * 查询虚拟币流水表数据
	 * @param param
	 * @return
	 */
	public List<BaseVirtualMoneyFlowLogVO> queryVirtualMoneyFlowLogList(BaseParam param) {
		return baseVirtualMoneyFlowLogMapper.queryVirtualMoneyFlowLogList(param);
	}
}
